package com.easybuy.dao;

import com.easybuy.pojo.UserAddress;

import java.util.List;

public interface UserAddressMapper {
    //查询所有地址
    List<UserAddress> UserAddressList();
    //根据用户ID查询地址
    List<UserAddress> getUserAddress(int userId);
    //修改地址信息
    Integer modifyUserAddress(UserAddress userAddress);
    //设置默认地址功能
    Integer isDefaultUserAddress(Integer id);
    //清空默认
    Integer cleanDefaultUserAddress(Integer userId);
    //增加地址
    Integer addUserAddress(UserAddress userAddress);
    //查询单个地址信息
    UserAddress getUserAddressById(int id);
    //删除地址
    int deleAddress(int id);
}
